package top.zywork.weixin;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 微信支付单品优惠单品详情<br/>
 *
 * 创建于2020-03-20<br/>
 *
 * @author 王振宇
 * @version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UnifiedOrderDetail {

    /**
     * 单品列表
     */
    private List<GoodsDetail> goods_detail;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public class GoodsDetail {
        /**
         * 商品编码
         */
        private String goods_id;
        /**
         * 商品名称
         */
        private String goods_name;
        /**
         * 商品数量
         */
        private Integer quantity;
        /**
         * 商品单价
         */
        private Integer price;
    }
}
